package com.lanou3g.code0510.anno;

import java.lang.annotation.Annotation;

public class Main {
    public static void main(String[] args) {
        MyServlet myServlet= new MyServlet();
        //获取注解里面的值
        Class clazz = myServlet.getClass();

     MyAnno anno=(MyAnno)clazz.getAnnotation(MyAnno.class);
     String name= anno.name();
     String path= anno.path();

        System.out.println(name);
        System.out.println(path);

    }
}
